/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * monedero_sie_catalogo_detalle.java
 *
 * Created on 8/09/2011, 08:13:08 PM
 */

package sie_invdis;



import java.sql.*;
import javax.swing.*;
import java.awt.*;

import java.util.Date;
import java.util.Calendar;
import java.text.SimpleDateFormat;
import java.text.ParseException;
import java.text.*;
/**
 *
 * @author Michelle
 */
public class monedero_sie_catalogo_detalle extends javax.swing.JFrame {

    private JTable jtable_tiendas;
    private javax.swing.table.DefaultTableModel jtable_modelo;
    private javax.swing.table.DefaultTableModel jtable_modelo_pedidos;
    private javax.swing.table.DefaultTableModel jtable_modelo_hispun;
private SimpleDateFormat formateador = new SimpleDateFormat("dd-MM-yyyy");
private SimpleDateFormat formateadoresta = new SimpleDateFormat("yyyy-MM-dd");
   bd_conexion x = new bd_conexion() ;
       //se creaa la variable resultset
   ResultSet rs = null;
    private java.util.Date fechahoy=new Date();

    private int buscamp=0,controlcombo=0,yacarguepedidos=0,indexactual=0,yacarguehispun=0;
    private String tiendafiltro="0";
    /** Creates new form monedero_sie_catalogo_detalle */
    public monedero_sie_catalogo_detalle() {
        initComponents();
    }
public monedero_sie_catalogo_detalle(String titulo,String codigo) {
        this.iniciar_modelo_pedidos();
        this.iniciar_modelo_historialpuntos();
        initComponents();
        this.carga_datos(2,codigo);
        Calendar fechaini = Calendar.getInstance(); // obtiene la fecha actual
        this.jdc_fechainicial.setDate(fechaini.getTime());
        this.jtf_monnombre.requestFocus();
        this.jbtn_guardar.setVisible(false);
        this.jbtn_actualizar.setVisible(false);
        jtb_pedidos.getColumnModel().getColumn(0).setPreferredWidth(15);//tem ent
        jtb_pedidos.getColumnModel().getColumn(1).setPreferredWidth(35);//tem ent
        jtb_pedidos.getColumnModel().getColumn(2).setPreferredWidth(20);//familia
        jtb_pedidos.getColumnModel().getColumn(3).setPreferredWidth(60);//subfam.
        jtb_pedidos.getColumnModel().getColumn(4).setPreferredWidth(15);//tem ent
        jtb_pedidos.getColumnModel().getColumn(5).setPreferredWidth(20);//familia
        jtb_pedidos.getColumnModel().getColumn(6).setPreferredWidth(120);//subfam.
        jtb_pedidos.getColumnModel().getColumn(7).setPreferredWidth(20);//tem ent
        jtb_pedidos.getColumnModel().getColumn(8).setPreferredWidth(20);//tem ent
        jtb_pedidos.getColumnModel().getColumn(9).setPreferredWidth(60);//tem ent
        jtb_pedidos.getColumnModel().getColumn(10).setPreferredWidth(40);//tem ent
        jtb_pedidos.getColumnModel().getColumn(11).setPreferredWidth(120);//tem ent
        jtb_pedidos.getColumnModel().getColumn(12).setPreferredWidth(20);//tem ent

        jtb_monederomovimientos.getColumnModel().getColumn(0).setPreferredWidth(20);//tem ent
        jtb_monederomovimientos.getColumnModel().getColumn(1).setPreferredWidth(120);//tem ent
        jtb_monederomovimientos.getColumnModel().getColumn(2).setPreferredWidth(60);//familia
        jtb_monederomovimientos.getColumnModel().getColumn(3).setPreferredWidth(60);//subfam.
        jtb_monederomovimientos.getColumnModel().getColumn(4).setPreferredWidth(15);//tem ent
        jtb_monederomovimientos.getColumnModel().getColumn(5).setPreferredWidth(20);//familia
        jtb_monederomovimientos.getColumnModel().getColumn(6).setPreferredWidth(20);//subfam.
        jtb_monederomovimientos.getColumnModel().getColumn(7).setPreferredWidth(20);//tem ent
         jtb_monederomovimientos.getColumnModel().getColumn(8).setPreferredWidth(20);//tem ent

        this.setTitle("S.I. Catalogo de Monederos(Edicion:"+this.jtf_monnombre.getText().toUpperCase()+" "+this.jtf_monapat.getText().toUpperCase()+")");
    }
private void iniciar_modelo_pedidos()
        {
            jtable_modelo_pedidos=new javax.swing.table.DefaultTableModel();//Creo el modelo
            jtable_modelo_pedidos.addColumn("<html><b>Tienda</b></html>");
            jtable_modelo_pedidos.addColumn("<html><b>Status</b></html>");
            jtable_modelo_pedidos.addColumn("<html><b>Folio</b></html>");
            jtable_modelo_pedidos.addColumn("<html><b>Fecha</b></html>");
            jtable_modelo_pedidos.addColumn("<html><b>Hora</b></html>");
            jtable_modelo_pedidos.addColumn("<html><b>Doc.Sig.</b></html>");
            jtable_modelo_pedidos.addColumn("<html><b>Cliente</b></html>");
            jtable_modelo_pedidos.addColumn("<html><b>Pzs</b></html>");
            jtable_modelo_pedidos.addColumn("<html><b>Desc.</b></html>");
            jtable_modelo_pedidos.addColumn("<html><b>Promocion.</b></html>");
            jtable_modelo_pedidos.addColumn("<html><b>Importe</b></html>");
            jtable_modelo_pedidos.addColumn("<html><b>Agente</b></html>");
            jtable_modelo_pedidos.addColumn("<html><b>H.Pago</b></html>");
        }
private void iniciar_modelo_historialpuntos()
        {
            jtable_modelo_hispun=new javax.swing.table.DefaultTableModel();//Creo el modelo
            jtable_modelo_hispun.addColumn("<html><b>Tienda</b></html>");
            jtable_modelo_hispun.addColumn("<html><b>Promocion</b></html>");
            jtable_modelo_hispun.addColumn("<html><b>Movimiento</b></html>");
            jtable_modelo_hispun.addColumn("<html><b>Fecha</b></html>");
            jtable_modelo_hispun.addColumn("<html><b>Hora</b></html>");
            jtable_modelo_hispun.addColumn("<html><b>Monto Venta</b></html>");
            jtable_modelo_hispun.addColumn("<html><b>% Puntos</b></html>");
            jtable_modelo_hispun.addColumn("<html><b>Puntos</b></html>");
            jtable_modelo_hispun.addColumn("<html><b>Ptos Acum.</b></html>");
       //para formatear
       //fnewRow[1+ii]=myFormatter.format(importe2);
        }

private void carga_datos(int opbus,String tbusca)
    {
        int rankin=0;
        String fechacat = "";
        DecimalFormat miformat = new DecimalFormat("###,###,###,###");
        java.util.Date fechainicial=new Date();

       
       //invoco al metodo que trae el recordset de datos
       rs = x.sieuno_executediversosv2("select * from x1monedero_clientes_tabla('"+tiendafiltro+"',"+opbus+",'"+tbusca+"') as (idcliente integer,email text,idtienda integer,direccion text,nombre text,idtarmonedero integer,codigo text,apaterno text,amaterno text,fechanacimiento text,celular text);",variables_global.getconexiongral());
        try
         {
            while (rs.next())
                {
                    this.jtf_idcliente.setText(rs.getString("idcliente"));
                    this.jtf_monid.setText(rs.getString ("codigo"));
                    this.jtf_monnombre.setText(rs.getString ("nombre"));
                    this.jtf_monapat.setText(rs.getString ("apaterno"));
                    this.jtf_monamaterno.setText(rs.getString("amaterno"));
                    //this.jtf_email.setText(rs.getString ("email"));
                    //this.jtf_fechanacimiento.setText("fechanacimiento");
                }

        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }

      //  this.registrosobtenidos();
      }

private void carga_datos_actualiza(int opcion,String ccodigo,String cnombre,String apaterno,String amaterno,String cfecha,String cemail)
    {
        int rankin=0;
        String fechacat = "";
        DecimalFormat miformat = new DecimalFormat("###,###,###,###");
        java.util.Date fechainicial=new Date();
       //invoco al metodo que trae el recordset de datos
        String texto="select * from x1monedero_clientes_actualizadatos("+opcion+",'"+ccodigo+"','"+cnombre+"','"+apaterno+"','"+amaterno+"','"+cfecha+"','"+cemail+"');";
        System.out.println(texto);
        
        try
         {
            rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
            while (rs.next())
                {
                   if (rs.getInt(1) == 1)
                          {
                               JOptionPane.showMessageDialog(null," Actualizacion Correcta", "Sistema Integral(Edicion Monedero) : Confirmacion",1);
                          }
                   else
                          {
                               JOptionPane.showMessageDialog(null," Actualizacion Incorrecta ", "Sistema Integral(Edicion Monedero) : Error",1);
                          }
                }
        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }
        
      }

private void carga_datos_pedidoscatalogo(int opcion,String tienda,String busca1,String busca2)
    {
       String fechacat = "",fechallegatienda="",fechaentrega="",abrehtml="",cierrahtml="";
       DecimalFormat miformat = new DecimalFormat("###,###,###,###");
       while(jtable_modelo_pedidos.getRowCount()>0)jtable_modelo_pedidos.removeRow(0);
       Object[] fnewRow = new Object[13];
       //invoco al metodo que trae el recordset de datos
       String texto="",arreglo_idtie[]=null;
       //this.LimpiarJTable();
        try
         {
               texto="select * from x1venta_pedidos_completo("+opcion+",'"+tienda+"','"+busca1+"','"+busca2+"') as (idpedido integer,idnivel1 integer,totalventa real,idcatdes integer,idcliente integer,idstatus integer,totalventasindescuento real,descuento real,fechapedido date,horapedido time,idempleaagente integer,nombrestatus text,nombreagente text,apaternoagente text,nombrecliente text,idniv2 integer,horapago time,folioimpreso bigint,idempleadocaja integer,describedescuento text,piezas real);";
               System.out.println(texto);
               rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
               while (rs.next())
                    {
                        //System.out.println(rs.getString("idtipopago"));
                        switch (rs.getInt("idstatus"))
                        {

                            case 1:
                                abrehtml="<html><b><font color=#0000FF>";
                                cierrahtml="<font></b></html>";
                            break;
                            case 5:
                                 abrehtml="<html>";
                                 cierrahtml="</html>";
                            break;
                            default:
                                 abrehtml="<html><b><font color=#FF6633>";
                                 cierrahtml="<font></b></html>";
                            break;
                        }
                    if(rs.getString("folioimpreso") != null)
                            {
                                fnewRow[5]=abrehtml+rs.getString("folioimpreso")+cierrahtml;
                                fnewRow[12]=abrehtml+rs.getString("horapago").substring(0, 5)+cierrahtml;
                            }
                    else
                            {
                                fnewRow[5]="";
                                fnewRow[12]="";
                            }
                     arreglo_idtie=rs.getString ("nombrestatus").toString().split(":");
                     fnewRow[0]=abrehtml+arreglo_idtie[0].toUpperCase()+":"+arreglo_idtie[1]+cierrahtml;
                     fnewRow[1]=abrehtml+arreglo_idtie[2].toUpperCase()+cierrahtml;
                     fnewRow[2]=abrehtml+rs.getString("idpedido")+cierrahtml;
                     fnewRow[3]=abrehtml+this.fechaeuropea(rs.getString("fechapedido"))+cierrahtml;
                     fnewRow[4]=abrehtml+rs.getString("horapedido").substring(0, 5)+cierrahtml;

                     fnewRow[6]=abrehtml+rs.getString("nombrecliente")+cierrahtml;
                     fnewRow[7]=abrehtml+miformat.format(rs.getFloat("piezas"))+cierrahtml;
                     fnewRow[8]=abrehtml+miformat.format((rs.getFloat("descuento")/rs.getFloat("totalventasindescuento"))*100)+"%"+cierrahtml;
                     fnewRow[9]=abrehtml+rs.getString("describedescuento")+cierrahtml;
                     fnewRow[10]=abrehtml+miformat.format(rs.getFloat("totalventa"))+cierrahtml;
                     fnewRow[11]=abrehtml+rs.getString("nombreagente").toUpperCase()+ " " +rs.getString("apaternoagente").toUpperCase()+cierrahtml;

                     jtable_modelo_pedidos.addRow(fnewRow);
                    }
        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }


     }

private void carga_datos_historialpuntos(int opcion, String opcion2,String busca1,String busca2)
 {

       Object[] fnewRow = new Object[11];
       float historial=0,puntosj=0;
       String abrehtml="",cierrahtml="";
             DecimalFormat miformat = new DecimalFormat("############.##");
       while(jtable_modelo_hispun.getRowCount()>0)jtable_modelo_hispun.removeRow(0);
       String texto="select * from x1monedero_movimientos_cargosyabonos("+opcion+",'"+opcion2+"','"+busca1.trim()+"','"+busca2+"') as (cnstrans integer,idtarmon integer,codigo text,fachamovi date,idcattra integer,monto real,idcatmondes integer,puntos real,idniv2 integer,hora time,idtienda integer,montoacum double precision,nombremovi text,nombremovi2 text,operador character varying(1),de real,hasta real,porcentaje real,fechainicio date,fechafin date,descripcionpromo text,descriptienda character varying(35))";

       System.out.println(texto);
       try
        {
           rs = x.sieuno_executediversosv2(texto,variables_global.getconexiongral());
            while (rs.next())
                {
                if(rs.getString("operador").equals("+"))
                            {
                                abrehtml="<html><BODY><b>";
                                cierrahtml="</b></BODY></html>";
                                puntosj=rs.getFloat("puntos");
                            }
                else
                            {
                                abrehtml="";
                                cierrahtml="";
                                puntosj=rs.getFloat("puntos")*-1;
                            }
                if(rs.getString ("hora")!=null)
                            {
                             fnewRow[4]=abrehtml+rs.getString ("hora").substring(0,5)+cierrahtml;
                            }
                else
                            {
                            fnewRow[4]="";
                            }
                    historial+=puntosj;
                    fnewRow[0]=abrehtml+rs.getString ("descriptienda")+cierrahtml;
                    fnewRow[1]=abrehtml+rs.getString ("descripcionpromo")+cierrahtml;
                    fnewRow[2]=abrehtml+rs.getString ("idcattra")+":"+rs.getString ("nombremovi2").toUpperCase()+cierrahtml;
                    fnewRow[3]=abrehtml+this.fechaeuropea(rs.getString ("fachamovi"))+" "+this.DiaSemana(this.fechaeuropea(rs.getString ("fachamovi")))+cierrahtml;

                    fnewRow[5]=abrehtml+miformat.format(rs.getFloat("monto"))+cierrahtml;
                    fnewRow[6]=abrehtml+rs.getString ("porcentaje")+"%"+cierrahtml;
                    fnewRow[7]=abrehtml+miformat.format(puntosj)+cierrahtml;
                    fnewRow[8]=abrehtml+miformat.format(historial)+cierrahtml;
                    
                    jtable_modelo_hispun.addRow(fnewRow);
                }

        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }

 }
private void dioclickpedidos(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
        System.out.println("dio doble  click");
        int fila = jtb_pedidos.getSelectedRow();
        String columtitulo[]=jtb_pedidos.getValueAt(fila, 0).toString().replace("<b>", "").replace("</b>", "").replace("<font color=#0000FF>", "").replace("<font color=#FF6633>", "").replace("<html>", "").replace("</html>", "").replace("<font>", "").split(":") ;
        ventas_sie_diarioventas_detalle fvsdv=new ventas_sie_diarioventas_detalle(1,columtitulo[0],jtb_pedidos.getValueAt(fila, 2).toString().replace("<b>", "").replace("</b>", "").replace("<font color=#0000FF>", "").replace("<font color=#FF6633>", "").replace("<html>", "").replace("</html>", "").replace("<font>", ""),columtitulo[1]);
        fvsdv.pack();
        fvsdv.setVisible(true);
    }

 private String  fechaeuropea(String fecha) {

         //resibe cadena de fecha en formato americano yyyy-MM-dd
        java.util.Date fechaestaeuropa=null;
       SimpleDateFormat formateadorestaeuropa = new SimpleDateFormat("dd-MM-yyyy");
       String cadenafecha="";
        try
         {
          fechaestaeuropa = formateadoresta.parse(fecha);
         }
        catch (ParseException e)
          {
             //Error, la cadena de texto no se puede convertir en fecha.
          }
       cadenafecha= formateadorestaeuropa.format(fechaestaeuropa);
       return cadenafecha;

    }
 private String DiaSemana(String fe) {
         String dia = "";
       java.util.Date fecha=null;
         try
            {
             fecha = formateador.parse(fe);

           }
        catch (ParseException e)
            {
            //Error, la cadena de texto no se puede convertir en fecha.
            }
        Calendar cal= Calendar.getInstance();
        cal.setTime(fecha);
        //ojo para establecer o recetear cada parte de la fecha por separado
        //cal.set(Calendar.YEAR, fecha.getYear());
        //cal.set(Calendar.MONTH, fecha.getMonth());
        //cal.set(Calendar.DAY_OF_MONTH, fecha.getDay());
        int diaInt = cal.get(Calendar.DAY_OF_WEEK);
        switch (diaInt) {
            case 1:
                dia = "Domingo";
                break;
            case 2:
                dia = "Lunes";
                break;
            case 3:
                dia = "Martes";
                break;
            case 4:
                dia = "Miercoles";
                break;
            case 5:
                dia = "Jueves";
                break;
            case 6:
                dia = "Viernes";
                break;
            case 7:
                dia = "Sabado";
                break;

        }
        return dia;
    }
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jtf_monid = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        jtf_monnombre = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        jtf_monapat = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        jtf_monamaterno = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        jtf_email = new javax.swing.JTextField();
        jdc_fechainicial = new com.toedter.calendar.JDateChooser();
        jLabel8 = new javax.swing.JLabel();
        jbtn_guardar = new javax.swing.JButton();
        jbtn_actualizar = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jtf_busqueda = new javax.swing.JTextField();
        jbtn_busqueda = new javax.swing.JButton();
        jtf_idcliente = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jtb_pedidos = new javax.swing.JTable(){
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }}
            ;
            jPanel3 = new javax.swing.JPanel();
            jScrollPane2 = new javax.swing.JScrollPane();
            jtb_monederomovimientos = new javax.swing.JTable(){
                public boolean isCellEditable(int rowIndex, int mColIndex) {
                    return false;
                }}
                ;
                jMenuBar1 = new javax.swing.JMenuBar();
                jMenu1 = new javax.swing.JMenu();
                jmni_guardar = new javax.swing.JMenuItem();
                jmni_salir = new javax.swing.JMenuItem();
                jMenu2 = new javax.swing.JMenu();
                jmni_escape = new javax.swing.JMenuItem();
                jmni_buscar = new javax.swing.JMenuItem();
                jMenu3 = new javax.swing.JMenu();

                setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
                org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(sie_invdis.Sie_invdisApp.class).getContext().getResourceMap(monedero_sie_catalogo_detalle.class);
                setTitle(resourceMap.getString("Form.title")); // NOI18N
                setName("Form"); // NOI18N

                jTabbedPane1.setName("jTabbedPane1"); // NOI18N
                jTabbedPane1.addChangeListener(new javax.swing.event.ChangeListener() {
                    public void stateChanged(javax.swing.event.ChangeEvent evt) {
                        jTabbedPane1StateChanged(evt);
                    }
                });

                jPanel1.setName("jPanel1"); // NOI18N

                jtf_monid.setEditable(false);
                jtf_monid.setName("jtf_monid"); // NOI18N

                jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
                jLabel5.setName("jLabel5"); // NOI18N

                jtf_monnombre.setToolTipText(resourceMap.getString("jtf_monnombre.toolTipText")); // NOI18N
                jtf_monnombre.setName("jtf_monnombre"); // NOI18N
                jtf_monnombre.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jtf_monnombreActionPerformed(evt);
                    }
                });

                jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
                jLabel6.setName("jLabel6"); // NOI18N

                jtf_monapat.setToolTipText(resourceMap.getString("jtf_monapat.toolTipText")); // NOI18N
                jtf_monapat.setName("jtf_monapat"); // NOI18N
                jtf_monapat.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jtf_monapatActionPerformed(evt);
                    }
                });

                jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
                jLabel7.setName("jLabel7"); // NOI18N

                jtf_monamaterno.setToolTipText(resourceMap.getString("jtf_monamaterno.toolTipText")); // NOI18N
                jtf_monamaterno.setName("jtf_monamaterno"); // NOI18N
                jtf_monamaterno.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jtf_monamaternoActionPerformed(evt);
                    }
                });

                jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
                jLabel3.setName("jLabel3"); // NOI18N

                jLabel23.setText(resourceMap.getString("jLabel23.text")); // NOI18N
                jLabel23.setName("jLabel23"); // NOI18N

                jtf_email.setName("jtf_email"); // NOI18N
                jtf_email.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jtf_emailActionPerformed(evt);
                    }
                });

                jdc_fechainicial.setToolTipText(resourceMap.getString("jdc_fechainicial.toolTipText")); // NOI18N
                jdc_fechainicial.setDateFormatString(resourceMap.getString("jdc_fechainicial.dateFormatString")); // NOI18N
                jdc_fechainicial.setName("jdc_fechainicial"); // NOI18N
                jdc_fechainicial.addInputMethodListener(new java.awt.event.InputMethodListener() {
                    public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {
                    }
                    public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {
                        jdc_fechainicialInputMethodTextChanged(evt);
                    }
                });
                jdc_fechainicial.addKeyListener(new java.awt.event.KeyAdapter() {
                    public void keyPressed(java.awt.event.KeyEvent evt) {
                        jdc_fechainicialKeyPressed(evt);
                    }
                });

                jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N
                jLabel8.setName("jLabel8"); // NOI18N

                jbtn_guardar.setIcon(resourceMap.getIcon("jbtn_guardar.icon")); // NOI18N
                jbtn_guardar.setText(resourceMap.getString("jbtn_guardar.text")); // NOI18N
                jbtn_guardar.setName("jbtn_guardar"); // NOI18N
                jbtn_guardar.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_guardarActionPerformed(evt);
                    }
                });

                jbtn_actualizar.setIcon(resourceMap.getIcon("jbtn_actualizar.icon")); // NOI18N
                jbtn_actualizar.setText(resourceMap.getString("jbtn_actualizar.text")); // NOI18N
                jbtn_actualizar.setName("jbtn_actualizar"); // NOI18N
                jbtn_actualizar.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_actualizarActionPerformed(evt);
                    }
                });

                jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
                jLabel1.setName("jLabel1"); // NOI18N

                jtf_busqueda.setText(resourceMap.getString("jtf_busqueda.text")); // NOI18N
                jtf_busqueda.setName("jtf_busqueda"); // NOI18N

                jbtn_busqueda.setIcon(resourceMap.getIcon("jbtn_busqueda.icon")); // NOI18N
                jbtn_busqueda.setText(resourceMap.getString("jbtn_busqueda.text")); // NOI18N
                jbtn_busqueda.setName("jbtn_busqueda"); // NOI18N
                jbtn_busqueda.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jbtn_busquedaActionPerformed(evt);
                    }
                });

                jtf_idcliente.setEditable(false);
                jtf_idcliente.setText(resourceMap.getString("jtf_idcliente.text")); // NOI18N
                jtf_idcliente.setName("jtf_idcliente"); // NOI18N

                jLabel9.setText(resourceMap.getString("jLabel9.text")); // NOI18N
                jLabel9.setName("jLabel9"); // NOI18N

                javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
                jPanel1.setLayout(jPanel1Layout);
                jPanel1Layout.setHorizontalGroup(
                    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jbtn_guardar)
                        .addGap(18, 18, 18)
                        .addComponent(jbtn_actualizar, javax.swing.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE)
                        .addGap(724, 724, 724))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(22, 22, 22)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(jLabel23)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jtf_email, javax.swing.GroupLayout.DEFAULT_SIZE, 197, Short.MAX_VALUE)
                                .addGap(20, 20, 20)
                                .addComponent(jLabel8)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jdc_fechainicial, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(75, 75, 75))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel9)
                                    .addComponent(jLabel5))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jtf_idcliente, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addComponent(jtf_monnombre, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(jLabel6)
                                        .addGap(1, 1, 1)
                                        .addComponent(jtf_monapat, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(12, 12, 12)
                                        .addComponent(jLabel7)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jtf_monamaterno, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                        .addGap(422, 422, 422))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_busqueda, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jbtn_busqueda)
                        .addGap(752, 752, 752))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(221, 221, 221)
                        .addComponent(jLabel3)
                        .addGap(25, 25, 25)
                        .addComponent(jtf_monid, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(610, Short.MAX_VALUE))
                );
                jPanel1Layout.setVerticalGroup(
                    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(jtf_busqueda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jbtn_busqueda))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jtf_monid, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel3)
                            .addComponent(jtf_idcliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel9))
                        .addGap(19, 19, 19)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel5)
                            .addComponent(jtf_monnombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6)
                            .addComponent(jtf_monapat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel7)
                            .addComponent(jtf_monamaterno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(29, 29, 29)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel23)
                                .addComponent(jtf_email, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel8))
                            .addComponent(jdc_fechainicial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(39, 39, 39)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jbtn_guardar)
                            .addComponent(jbtn_actualizar))
                        .addContainerGap(327, Short.MAX_VALUE))
                );

                jTabbedPane1.addTab(resourceMap.getString("jPanel1.TabConstraints.tabTitle"), jPanel1); // NOI18N

                jPanel2.setName("jPanel2"); // NOI18N

                jScrollPane1.setName("jScrollPane1"); // NOI18N

                jtb_pedidos.setModel(this.jtable_modelo_pedidos);
                jtb_pedidos.setName("jtb_pedidos"); // NOI18N
                jtb_pedidos.addMouseListener(new java.awt.event.MouseAdapter() {
                    public void mouseClicked(java.awt.event.MouseEvent evt) {
                        jtb_pedidosMouseClicked(evt);
                        if(evt.getClickCount() >= 2)
                        {
                            dioclickpedidos(evt);
                            //System.out.println(" double click" );

                        }
                    }
                });
                jScrollPane1.setViewportView(jtb_pedidos);

                javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
                jPanel2.setLayout(jPanel2Layout);
                jPanel2Layout.setHorizontalGroup(
                    jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGap(0, 985, Short.MAX_VALUE)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 965, Short.MAX_VALUE)
                            .addContainerGap()))
                );
                jPanel2Layout.setVerticalGroup(
                    jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGap(0, 553, Short.MAX_VALUE)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addGap(49, 49, 49)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 473, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(31, Short.MAX_VALUE)))
                );

                jTabbedPane1.addTab(resourceMap.getString("jPanel2.TabConstraints.tabTitle"), jPanel2); // NOI18N

                jPanel3.setName("jPanel3"); // NOI18N

                jScrollPane2.setName("jScrollPane2"); // NOI18N

                jtb_monederomovimientos.setModel(this.jtable_modelo_hispun);
                jtb_monederomovimientos.setName("jtb_monederomovimientos"); // NOI18N
                jtb_monederomovimientos.setRowHeight(22);
                jtb_monederomovimientos.addMouseListener(new java.awt.event.MouseAdapter() {
                    public void mouseClicked(java.awt.event.MouseEvent evt) {
                        jtb_monederomovimientosMouseClicked(evt);
                    }
                });
                jtb_monederomovimientos.addKeyListener(new java.awt.event.KeyAdapter() {
                    public void keyPressed(java.awt.event.KeyEvent evt) {
                        jtb_monederomovimientosKeyPressed(evt);
                    }
                });
                jScrollPane2.setViewportView(jtb_monederomovimientos);

                javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
                jPanel3.setLayout(jPanel3Layout);
                jPanel3Layout.setHorizontalGroup(
                    jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGap(0, 985, Short.MAX_VALUE)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 985, Short.MAX_VALUE))
                );
                jPanel3Layout.setVerticalGroup(
                    jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGap(0, 553, Short.MAX_VALUE)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel3Layout.createSequentialGroup()
                            .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 522, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(31, Short.MAX_VALUE)))
                );

                jTabbedPane1.addTab(resourceMap.getString("jPanel3.TabConstraints.tabTitle"), jPanel3); // NOI18N

                jMenuBar1.setName("jMenuBar1"); // NOI18N

                jMenu1.setText(resourceMap.getString("jMenu1.text")); // NOI18N
                jMenu1.setName("jMenu1"); // NOI18N

                jmni_guardar.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_G, java.awt.event.InputEvent.ALT_MASK));
                jmni_guardar.setText(resourceMap.getString("jmni_guardar.text")); // NOI18N
                jmni_guardar.setName("jmni_guardar"); // NOI18N
                jmni_guardar.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jmni_guardarActionPerformed(evt);
                    }
                });
                jMenu1.add(jmni_guardar);

                jmni_salir.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.ALT_MASK));
                jmni_salir.setIcon(resourceMap.getIcon("jmni_salir.icon")); // NOI18N
                jmni_salir.setText(resourceMap.getString("jmni_salir.text")); // NOI18N
                jmni_salir.setName("jmni_salir"); // NOI18N
                jmni_salir.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jmni_salirActionPerformed(evt);
                    }
                });
                jMenu1.add(jmni_salir);

                jMenuBar1.add(jMenu1);

                jMenu2.setText(resourceMap.getString("jMenu2.text")); // NOI18N
                jMenu2.setName("jMenu2"); // NOI18N

                jmni_escape.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0));
                jmni_escape.setText(resourceMap.getString("jmni_escape.text")); // NOI18N
                jmni_escape.setName("jmni_escape"); // NOI18N
                jmni_escape.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jmni_escapeActionPerformed(evt);
                    }
                });
                jMenu2.add(jmni_escape);

                jmni_buscar.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_B, java.awt.event.InputEvent.CTRL_MASK));
                jmni_buscar.setIcon(resourceMap.getIcon("jmni_buscar.icon")); // NOI18N
                jmni_buscar.setText(resourceMap.getString("jmni_buscar.text")); // NOI18N
                jmni_buscar.setName("jmni_buscar"); // NOI18N
                jmni_buscar.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jmni_buscarActionPerformed(evt);
                    }
                });
                jMenu2.add(jmni_buscar);

                jMenuBar1.add(jMenu2);

                jMenu3.setText(resourceMap.getString("jMenu3.text")); // NOI18N
                jMenu3.setName("jMenu3"); // NOI18N
                jMenuBar1.add(jMenu3);

                setJMenuBar(jMenuBar1);

                javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
                getContentPane().setLayout(layout);
                layout.setHorizontalGroup(
                    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 990, Short.MAX_VALUE)
                        .addContainerGap())
                );
                layout.setVerticalGroup(
                    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 581, Short.MAX_VALUE)
                        .addContainerGap())
                );

                pack();
            }// </editor-fold>//GEN-END:initComponents

    private void jmni_salirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_salirActionPerformed
        // TODO add your handling code here:
     if(JOptionPane.showConfirmDialog(null, "Desea Salir?")==0) {
             this.dispose();
        }
    }//GEN-LAST:event_jmni_salirActionPerformed

    private void jtf_monnombreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_monnombreActionPerformed
        // TODO add your handling code here:
        this.jtf_monapat.requestFocus();
}//GEN-LAST:event_jtf_monnombreActionPerformed

    private void jtf_monapatActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_monapatActionPerformed
        // TODO add your handling code here:
        this.jtf_monamaterno.requestFocus();
}//GEN-LAST:event_jtf_monapatActionPerformed

    private void jtf_monamaternoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_monamaternoActionPerformed
        // TODO add your handling code here:
        this.jtf_email.requestFocus();
}//GEN-LAST:event_jtf_monamaternoActionPerformed

    private void jtf_emailActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_emailActionPerformed
        // TODO add your handling code here:
        this.jdc_fechainicial.requestFocus();
    }//GEN-LAST:event_jtf_emailActionPerformed

    private void jdc_fechainicialInputMethodTextChanged(java.awt.event.InputMethodEvent evt) {//GEN-FIRST:event_jdc_fechainicialInputMethodTextChanged
        // TODO add your handling code here:
}//GEN-LAST:event_jdc_fechainicialInputMethodTextChanged

    private void jdc_fechainicialKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jdc_fechainicialKeyPressed
        // TODO add your handling code here:
}//GEN-LAST:event_jdc_fechainicialKeyPressed

    private void jbtn_guardarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_guardarActionPerformed
        // TODO add your handling code here:
    if(JOptionPane.showConfirmDialog(null, "Estan Correctos sus Datos?")==0)
            {
                SimpleDateFormat formato = new SimpleDateFormat("yyyy-MM-dd");
                String pFechai = formato.format(this.jdc_fechainicial.getDate());//fecha final de reporte
                this.carga_datos_actualiza(1, this.jtf_monid.getText(),this.jtf_monnombre.getText().trim().toUpperCase(),this.jtf_monapat.getText().trim().toUpperCase(),this.jtf_monamaterno.getText().toUpperCase(),pFechai,this.jtf_email.getText().trim());
                this.dispose();
            }
    }//GEN-LAST:event_jbtn_guardarActionPerformed

    private void jmni_escapeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_escapeActionPerformed
        // TODO add your handling code here:
        this.jmni_salirActionPerformed(evt);
    }//GEN-LAST:event_jmni_escapeActionPerformed

    private void jmni_guardarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_guardarActionPerformed
        // TODO add your handling code here:
        this.jbtn_guardarActionPerformed(evt);
    }//GEN-LAST:event_jmni_guardarActionPerformed

    private void jbtn_actualizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_actualizarActionPerformed
        // TODO add your handling code here:
         if(JOptionPane.showConfirmDialog(null, "Estan Correctos sus Datos?")==0)
            {
                SimpleDateFormat formato = new SimpleDateFormat("yyyy-MM-dd");
                String pFechai = formato.format(this.jdc_fechainicial.getDate());//fecha final de reporte
                this.carga_datos_actualiza(1, this.jtf_monid.getText(),this.jtf_monnombre.getText().trim().toUpperCase(),this.jtf_monapat.getText().trim().toUpperCase(),this.jtf_monamaterno.getText().toUpperCase(),pFechai,this.jtf_email.getText().trim());
                this.jtf_monid.setText("");
                this.jtf_monnombre.setText("");
                this.jtf_monapat.setText("");
                this.jtf_monamaterno.setText("");
                this.jtf_email.setText("");
                this.jtf_busqueda.requestFocus();
               
            }
    }//GEN-LAST:event_jbtn_actualizarActionPerformed

    private void jbtn_busquedaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_busquedaActionPerformed
        // TODO add your handling code here:
          this.carga_datos(1,this.jtf_busqueda.getText().trim());
    }//GEN-LAST:event_jbtn_busquedaActionPerformed

    private void jmni_buscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_buscarActionPerformed
        // TODO add your handling code here:
        this.jbtn_busquedaActionPerformed(evt);
    }//GEN-LAST:event_jmni_buscarActionPerformed
    private void jtb_pedidosMouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
}
    private void jTabbedPane1StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jTabbedPane1StateChanged
        // TODO add your handling code here:
          indexactual=this.jTabbedPane1.getSelectedIndex();
          if((indexactual==1)&&(yacarguepedidos==0))
                {
                   yacarguepedidos=1;
                   this.carga_datos_pedidoscatalogo(1, "0", this.jtf_idcliente.getText(), "");
                }
          if((indexactual==2)&&(yacarguehispun==0))
                {
                   yacarguehispun=1;

                   this.carga_datos_historialpuntos(0,"",this.jtf_monid.getText(),"");
                }

    }//GEN-LAST:event_jTabbedPane1StateChanged

    private void jtb_monederomovimientosMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jtb_monederomovimientosMouseClicked
        // TODO add your handling code here:
}//GEN-LAST:event_jtb_monederomovimientosMouseClicked

    private void jtb_monederomovimientosKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jtb_monederomovimientosKeyPressed
        // TODO add your handling code here:
}//GEN-LAST:event_jtb_monederomovimientosKeyPressed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new monedero_sie_catalogo_detalle().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JButton jbtn_actualizar;
    private javax.swing.JButton jbtn_busqueda;
    private javax.swing.JButton jbtn_guardar;
    private com.toedter.calendar.JDateChooser jdc_fechainicial;
    private javax.swing.JMenuItem jmni_buscar;
    private javax.swing.JMenuItem jmni_escape;
    private javax.swing.JMenuItem jmni_guardar;
    private javax.swing.JMenuItem jmni_salir;
    private javax.swing.JTable jtb_monederomovimientos;
    private javax.swing.JTable jtb_pedidos;
    private javax.swing.JTextField jtf_busqueda;
    private javax.swing.JTextField jtf_email;
    private javax.swing.JTextField jtf_idcliente;
    private javax.swing.JTextField jtf_monamaterno;
    private javax.swing.JTextField jtf_monapat;
    private javax.swing.JTextField jtf_monid;
    private javax.swing.JTextField jtf_monnombre;
    // End of variables declaration//GEN-END:variables

}
